From 9aa25eaa0b7fe85b6edead3dbb42bac8d3103aa0 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Florian=20M=C3=BCllner?= Date: Tue, 9 Feb 2021 21:48:39 +0100 Subject: [PATCH] dash: Consider additions for separator visibility The children variable holds the icons that were originally in the dash. For the separator visibility, we should consider the icons that are in the dash after the update, so we must consider additions as well as removals. Part-of: --- js/ui/dash.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/ui/dash.js b/js/ui/dash.js index 16893f976..6b4c114e7 100644 --- a/js/ui/dash.js +++ b/js/ui/dash.js @@ -745,7 +745,7 @@ var Dash = GObject.registerClass({ // Update separator const nFavorites = Object.keys(favorites).length; - const nIcons = children.length - removedActors.length; + const nIcons = children.length + addedItems.length - removedActors.length; if (nFavorites > 0 && nFavorites < nIcons) { if (!this._separator) { this._separator = new St.Widget({ -- 2.39.5